import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet, httpGetFile } = service

//业主合同- 业主下发清单
const request = {
    //获取业主下发清单基本信息
    getOwnerIssueLiseBaseInfo (billId) {
        return httpGet({
            url: '/ownercontract/ownerContract/getEssentialInformationById',
            params: {
                billId: billId
            }
        })
    },
    //获取业主下发清单主体信息
    getOwnerIssueLiseMainInfo (billId) {
        return httpGet({
            url: '/ownercontract/ownerContract/getSubjectInformationById',
            params: {
                billId: billId
            }
        })
    },
    //清单信息-构造清单维度_细目—>结构名称
    getDistributionToList (params) {
        return httpPost({
            url: '/ownercontract/ownerContract/distributionToList',
            params
        })
    },
    //清单信息-构造清单维度_结构名称—>细目
    getStructureToList (params) {
        return httpPost({
            url: '/ownercontract/ownerContract/structureToList',
            params
        })
    },
    //内部标准清单 结构名称→细目
    getInStructureToList (params) {
        return httpPost({
            url: '/ownercontract/internalStandardList/listStructureToList',
            params
        })
    },
    //内部标准清单 细目→结构名称
    getInlistToStructure (params) {
        return httpPost({
            url: '/ownercontract/internalStandardList/listToStructure',
            params
        })
    },
    //业主下发清单匹配内部清单_业主下发清单
    matchingOwnerList (params) {
        return httpPost({
            url: '/ownercontract/ownerContract/list',
            params
        })
    },
    //业主下发清单匹配内部清单_内部标准清单
    matchingInternalList (params) {
        return httpPost({
            url: '/ownercontract/ownerContract/internalList',
            params
        })
    },
    //业主下发清单匹配内部清单——查询已匹配清单
    selectMatching (params) {
        return httpGet({
            url: '/ownercontract/ownerContract/selectMatching',
            params
        })
    },
}

export default request
